﻿
//Author: 张亚涛
//createtime:2015-12-15 23:07:57
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public partial class Info
    {
        public Info()
        { }
        public Info(IDataReader reader)
        {
            _id = int.Parse(reader["ID"].ToString());
            if (reader["Title"] != DBNull.Value)
            {
                _title = reader["Title"].ToString();
            }
            if (reader["Contents"] != DBNull.Value)
            {
                _contents = reader["Contents"].ToString();
            }
            if (reader["Remarks"] != DBNull.Value)
            {
                _remarks = reader["Remarks"].ToString();
            }
        }

        #region 数据库字段
        private int? _id;
        private string _title;
        private string _contents;
        private string _remarks;
        #endregion

        #region 字段属性
        /// <summary>
        /// 信息ID
        /// </summary>
        public int? Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        /// 内容
        /// </summary>
        public string Contents
        {
            set { _contents = value; }
            get { return _contents; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks
        {
            set { _remarks = value; }
            get { return _remarks; }
        }
        #endregion
    }
}